package com.test.BlockingQueueTest;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by yang on 17/3/28.
 */
public class StuClass {
    public static void joinClass(String token) throws Exception {
        String path = Basic.stuApiRoot + "/kclass/class/join";
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("source", "iPhoneRCStudent");
        jsonObject.put("classcode", Test1.doId);
        jsonObject.put("deviceType", "iPhone6");
        jsonObject.put("transaction", "joinClass");
        jsonObject.put("version", "3.0.0");
        jsonObject.put("token", token);
        jsonObject.put("deviceModel", "iPhone");

        ConnectionTest.sendPost(path, jsonObject.toString());
    }
}
